package com.gdyx.app.web.dao;

import com.gdyx.app.web.model.MpsDeptUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by Y_Coffee on 2017/8/4.
 */
@Mapper
public interface MpsDeptUserDao extends BaseDao {
    List<MpsDeptUser> findDeptUsers(Map<String, Object> map);

    List<MpsDeptUser> findDeptUserByUid(String id);

    List<MpsDeptUser> findDeptUserByDid(String id);

    void deleteByDid(String id);

    void deleteByUid(String id);

    MpsDeptUser  findDeptUserByDeptIdAndUsrId(@Param("deptId") String deptId,@Param("userId") String userId);

    void  deleteByUidAndDid(@Param("deptId") String deptId,@Param("userId") String userId);
}
